{extend name="main/index" /}
{block name="main"}

<div class="content-page">
    <div class="content">
        <h1>权限列表</h1>

        <form action="{:url('admin/con2/savenode')}" method="post">
            {volist name="nodes" id="v"}
            <input type="checkbox" name="node[]" value="{$v.id}" {if condition="in_array($v['id'], $data)"}checked{/if}>{$v.name}
            {if condition="$i%5 eq 0"}<br><br>{/if}
            {/volist}
            <br>
            <input type="hidden" name="id" value="{$user['id']}">
            <button class="btn btn-info">提交</button>
        </form>

    </div>
</div>
{/block}